//
//  HSYBaseViewController.h
//  HSY
//
//  Created by 陈浩 on 2017/3/31.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, HSYNavigationActionType){
    HSYNavActionLeftAreaLeft = 1001,
    HSYNavActionLeftAreaRight,
    HSYNavActionRightAreaLeft,
    HSYNavActionRightAreaRight,
    HSYNavActionCenterTitle,
};

typedef NS_ENUM(NSInteger, HSYNavgationBarType){
    HSYNavgationBarTypeDefault = 1,            //left   center  right
    HSYNavgationBarTypeCompoundLeft,            //left*2  center right
    HSYNavgationBarTypeCompoundRight,           //left  center  right*2
    HSYNavgationBarTypeCompoundLeftAndRight,    //left*2  center right*2
};


@interface BaseViewController : UIViewController

@property (nonatomic, strong) UIButton *leftAreaLBtn;
@property (nonatomic, strong) UIButton *leftAreaRBtn;
@property (nonatomic, strong) UIButton *rightAreaLBtn;
@property (nonatomic, strong) UIButton *rightAreaRBtn;

@property (nonatomic, strong) UIView *leftArea;
@property (nonatomic, strong) UIView *centerArea;
@property (nonatomic, strong) UIView *rightArea;

@property (nonatomic, assign) NSInteger leftAreaW;
@property (nonatomic, assign) NSInteger centerAreaW;
@property (nonatomic, assign) NSInteger rightAreaW;

@property (nonatomic, strong) UIButton *titleButton;

-(void) handleNavigationAction:(HSYNavigationActionType) actionType;
-(void) handleGoBackEvent:(UIButton *) sender;

@end
